package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDate;

/**
 * @author RJ
 * @date 2022/9/13 16:47
 */
/*
    日志一览
 */
@TableName("log_info")
public class LogBean {
    //日志id
    @TableId(value = "log_id", type = IdType.AUTO)
    private Integer logId;
    //日志内容
    @TableField("log_content")
    private String logContent;
    //日期
    @TableField("log_date")
    private LocalDate logDate = LocalDate.now();

    public LogBean() {
    }

    public LogBean(String logContent) {
        this.logContent = logContent;
    }

    public Integer getLogId() {
        return logId;
    }

    public void setLogId(Integer logId) {
        this.logId = logId;
    }

    public String getLogContent() {
        return logContent;
    }

    public void setLogContent(String logContent) {
        this.logContent = logContent;
    }

    public LocalDate getLogDate() {
        return logDate;
    }

    public void setLogDate(LocalDate logDate) {
        this.logDate = logDate;
    }

    @Override
    public String toString() {
        return "LogBean{" +
                "logId=" + logId +
                ", logContent='" + logContent + '\'' +
                ", logDate=" + logDate +
                '}';
    }
}
